<include file="public@header"/>

<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#">学生回访列表</a></li>
        <li ><a href="{:url('Student/addVisit',array('class_id'=>$class_id,'student_id'=>$student_id))}">添加回访</a></li>
    </ul>
    <div class="row margin-top-20">
        <div class="col-md-10 ">
            <form class="js-ajax-form" action="" method="post">
                <div class="table-actions">
                    <button class="btn btn-danger btn-sm js-ajax-submit" type="submit"
                            data-action="{:url('Student/deleteVisit')}" data-subcheck="true" data-msg="您确定删除吗？">
                        批量删除
                    </button>
                </div>
                <table class="table table-hover table-bordered table-list">
                    <thead>
                    <tr>
                        <th width="15">
                            <label>
                                <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                            </label>
                        </th>

                        <th>标题</th>
                        <th>内容</th>
                        <th>操作</th>
                    </tr>
                    </thead>

                        <foreach name="visit" item="vo">
                            <tr>
                                <td>
                                    <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
                                           value="{$vo.id}" title="ID:{$vo.id}">
                                </td>
                                <td>{$vo.title}</td>
                                <td>{$vo.content}</td>
                                <td>
                                    <a href="{:url('Student/editVisit',array('id'=>$vo.id))}">{:lang('EDIT')}</a> |
                                    <a href="{:url('Student/deleteVisit',array('id'=>$vo.id))}">{:lang('DELETE')}</a>
                                </td>
                            </tr>
                        </foreach>

                </table>
                <div class="pagination">{$page|default=''}</div>
            </form>

        </div>
    </div>
</div>
<!--ajax layer 弹窗-->
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>

<script type="text/javascript">
    $(document).ready(function() {
        $('input[name="birthday"]').datepicker({
          changeMonth: true,
          changeYear: true
        });//日期

    });

</script>

</body>
